﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Script.Serialization;
using System.Xml.Serialization;

namespace DJY.Domain.ViewModel
{
    /// <summary>
    /// 系统字典
    /// </summary>
    public class SysItem
    {
        public string id { get; set; }

        public string text { get; set; }

        public string code { get; set; }

        public string desc { get; set; }

        public List<SysItemCode> codes { get; set; }
    }

    public class SysItemCode
    {
        public string id { get; set; }

        [ScriptIgnore]
        [JsonIgnore]
        [XmlIgnore]
        public string parent { get; set; }

        public string text { get; set; }

        public string code { get; set; }

        public string desc { get; set; }

        public bool? isDefault { get; set; }
    }
}
